﻿using CommDll;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace HospitalMedicineTraceability
{
    /// <summary>
    /// 配企名称对码
    /// </summary>
    class ModelSupplierCodeCheck
    {
        //His信息
        public static string strID0;
        public static string strCode0;
        public static string strName0;
        public static string strLinkman0;
        public static string strSupplierCode;
        // 配企信息
        public static string strCode1;
        public static string strName1;
        public static int _saveInfo()
        {
            string strSql = string.Format("Update TH_Supplier set TaxCode = '{1}', TaxName = '{2}', Linker = '{3}', CodeCheckStatus='已对码',CodeCheckTime= getDate() where ID = {0}"
                , strID0, strCode1, strName1, strLinkman0);
            if (strCode1.Equals("暂不对码"))
            {
                strSql = string.Format("Update TH_Supplier set TaxCode = '{1}', TaxName = '',Linker = '',CodeCheckStatus='暂不对码',CodeCheckTime= getDate() where ID = {0}"
                    , strID0, strCode1);
            }
            int nResult = AppInfo._execSql(strSql);
            return nResult;
        }
    }
}
